/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ticketmaster.businessobject;

/**
 *
 * @author Wei Liu
 */
public class SeatBO
{
    private int seatNumber;
    private double price;
    private Boolean isSelected;

    public int getLevel()
    {
        return (seatNumber / 100 + 1);
    }

    /**
     * @return the seatNumber
     */
    public int getSeatNumber()
    {
        return seatNumber % 100 + 1;
    }

    public int getRealNumber()
    {
        return seatNumber;
    }

    /**
     * @param seatNumber the seatNumber to set
     */
    public void setSeatNumber(int seatNumber)
    {
        this.seatNumber = seatNumber;
    }

    /**
     * @return the price
     */
    public double getPrice()
    {
        return price;
    }

    /**
     * @param price the price to set
     */
    public void setPrice(double price)
    {
        this.price = price;
    }

    /**
     * @return the isSelected
     */
    public boolean isSelected()
    {
        return isSelected;
    }

    /**
     * @param isSelected the isSelected to set
     */
    public void setSelected(boolean isRecommanded)
    {
        this.isSelected = isRecommanded;
    }

    public String toString()
    {
        int number = seatNumber % 100 + 1;
        return String.valueOf(number);
    }
}
